// import Mock from 'mockjs'
const top = [{
  label: '首页',
  path: '/wel/index',
  icon: 'el-icon-document',
  meta: {
    i18n: 'dashboard'
  },
  parentId: 0
},
{
  label: '官网',
  icon: 'el-icon-document',
  meta: {
    menu: false,
    i18n: 'website'
  },
  path: 'https://avuejs.com',
  parentId: 1
},
{
  label: '测试',
  icon: 'el-icon-document',
  path: '/test/index',
  meta: {
    i18n: 'test'
  },
  parentId: 2
},
{
  label: '更多',
  icon: 'el-icon-document',
  path: '/wel/dashboard',
  meta: {
    menu: false,
    i18n: 'more'
  },
  parentId: 3
}]
const first = [{
  label: '权限管理',
  path: '/permission',
  icon: 'el-icon-s-check',
  component: '',
  meta: {
  },
  children: [{
    label: '用户管理',
    path: '/floor',
    icon: 'el-icon-user',
    component: 'views/base/floor'
  }, {
    label: '菜单管理',
    path: '/menu',
    icon: 'el-icon-menu',
    component: 'views/permission/menu'
  }, {
    label: '角色管理',
    path: '/position',
    icon: 'el-icon-s-custom',
    component: 'views/base/position'
  }, {
    label: '部门管理',
    path: '/department',
    icon: 'el-icon-s-platform',
    component: 'views/permission/department'
  }]
}, {
  label: '活动数据',
  path: '/activity',
  meta: {
  }, children: [{
    label: '预定信息',
    path: '/order',
    icon: 'icon-caidan',
    component: 'views/activity/order'
  }, {
    label: '打卡信息',
    path: '/punch-info',
    icon: 'icon-caidan',
    component: 'views/activity/punch'
  }]
}]
const second = []
const third = [{
  label: '测试页面',
  path: '/test',
  component: 'views/test',
  icon: 'icon-caidan',
  meta: {
    i18n: 'test'
  },
  children: []
}]
export default {
  top, first, second, third
}

// export default ({ mock }) => {
//   if (!mock) return;
//   let menu = [first, second, third];
//   Mock.mock('/user/getMenu', 'get', (res) => {
//     let body = JSON.parse(res.body);
//     return {
//       data: menu[body.type] || []
//     }
//   })
//   Mock.mock('/user/getTopMenu', 'get', () => {
//     return {
//       data: top
//     }
//   })
//
// }
